package com.lyw.GeoLocationClient.ui;

import com.lyw.GeoLocationClient.json.Geotable;

import java.io.Serializable;

public class GeotableItem implements Serializable {

    private static final long serialVersionUID = 1L;

    private int geoId;
    private String polId;
    private int pushID;
    private int pushChannel;
    private String name;
    private String unit;
    private String group;
    private String time;
    private String imei;

    public GeotableItem(String name, String polId, String unit, String group, String imei) {
        this.name = name;
        this.polId = polId;
        this.unit = unit;
        this.group = group;
        this.imei = imei;
    }

    String title;

    public int getIconRes() {
        return mIconRes;
    }

    int mIconRes;

    public int getColor() {
        return mColor;
    }

    int mColor;
    boolean active;

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public GeotableItem(String title, int iconRes, int color) {
        this.title = title;
        mIconRes = iconRes;
        mColor = color;
    }

    public GeotableItem() {

    }

    public GeotableItem(String title) {
        this.title = title;
    }

    public String getTitle() {
        return title;
    }

    public int getGeoId() {
        return geoId;
    }

    public void setGeoId(int geoId) {
        this.geoId = geoId;
    }

    public boolean isActive() {
        return active;
    }

    public void setActive(boolean active) {
        this.active = active;
    }

    public String getPolId() {
        return polId;
    }

    public void setPolId(String polId) {
        this.polId = polId;
    }

    public int getPushID() {
        return pushID;
    }

    public void setPushID(int pushID) {
        this.pushID = pushID;
    }

    public int getPushChannel() {
        return pushChannel;
    }

    public void setPushChannel(int pushChannel) {
        this.pushChannel = pushChannel;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public String getGroup() {
        return group;
    }

    public void setGroup(String group) {
        this.group = group;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getImei() {
        return imei;
    }

    public void setImei(String imei) {
        this.imei = imei;
    }

    @Override
    public String toString() {
        return this.title + " " + this.group;
    }
}
